<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/9/9
  Time: 11:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
    <head>
    <meta charset="utf-8">
    <title>登录--汽车租赁系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui_ext/dtree/dtree.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui_ext/dtree/font/dtreefont.css">
    </head>
<body>

    <ul id="demoTree" class="dtree" data-id="0"></ul>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/layui/layui.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/index.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/cache.js"></script>

<script>
    var DemoTree;
    layui.extend({
    dtree:'${pageContext.request.contextPath}/static/layui_ext/dtree/dtree'
    }).use(['dtree','layer','jquery'],function(){
        var dtree = layui.dtree,layer=layui.layer,
    $=layui.jquery;
      //初始化树
    DemoTree = dtree.render({
        elem:"#demoTree",
        // data:demoTree,
        url:"${pageContext.request.contextPath}/menu/menuLeftDtreeShow",
        dataStyle:"layuiStyle",
        response:{message:"msg",statusCode:0}
    })
  dtree.on("node('demoTree')",function(obj){
      var id= obj.param.nodeId
    //把id传递到右侧的table中
    window.parent.right.reloadTable(id)
    })
    })
    </script>
</body>
</html>
